<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="ProductOptionTypes.aspx.cs" Inherits="manager_inventory_ProductOptionTypes" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h2>Product Option Definitions</h2>
    <p>Define properties such as Colour, Weight, Size etc here.</p>
        <div style="margin-top:5px;margin-bottom:10px;">
          <b class="rc">
          <b class="rc1"><b></b></b>
          <b class="rc2"><b></b></b>
          <b class="rc3"></b>
          <b class="rc4"></b>
          <b class="rc5"></b></b>

          <div class="rcfg">
            <!-- content goes here -->
            <asp:FormView ID="FormView1" runat="server" DataSourceID="odsProductOptionTypes"
                OnItemInserting="FormView1_ItemInserting">
                <EditItemTemplate>
                    LastUpdated:
                    <asp:TextBox ID="LastUpdatedTextBox" runat="server" Text='<%# Bind("LastUpdated") %>'>
                    </asp:TextBox><br />
                    Title:
                    <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>'>
                    </asp:TextBox><br />
                    State:
                    <asp:TextBox ID="StateTextBox" runat="server" Text='<%# Bind("State") %>'>
                    </asp:TextBox><br />
                    WebsiteID:
                    <asp:TextBox ID="WebsiteIDTextBox" runat="server" Text='<%# Bind("WebsiteID") %>'>
                    </asp:TextBox><br />
                    GUID:
                    <asp:TextBox ID="GUIDTextBox" runat="server" Text='<%# Bind("GUID") %>'>
                    </asp:TextBox><br />
                    ID:
                    <asp:TextBox ID="IDTextBox" runat="server" Text='<%# Bind("ID") %>'>
                    </asp:TextBox><br />
                    <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                        Text="Update">
                    </asp:LinkButton>
                    <asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False" CommandName="Cancel"
                        Text="Cancel">
                    </asp:LinkButton>
                </EditItemTemplate>
                <EmptyDataTemplate>
                    <asp:Button ID="Button3" runat="server" CommandName="New" Text="Create New Option" />
                </EmptyDataTemplate>
                <InsertItemTemplate>
                    Title:
                    <asp:TextBox ID="TitleTextBox" runat="server" Text='<%# Bind("Title") %>'></asp:TextBox><br />
                    <asp:Button ID="Button1" runat="server" CommandName="Insert" Text="Create Option" />
                    <asp:Button ID="Button2" runat="server" CommandName="Cancel" Text="Cancel" />
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Button ID="Button3" runat="server" CommandName="New" Text="Create New Option" />
                </ItemTemplate>
            </asp:FormView>
            </div>

      <b class="rc">
      <b class="rc5"></b>
      <b class="rc4"></b>
      <b class="rc3"></b>
      <b class="rc2"><b></b></b>
      <b class="rc1"><b></b></b></b>
    </div>
    <asp:ObjectDataSource ID="odsProductOptionTypes" runat="server" DataObjectTypeName="TanashCMS.Business.ProductOptionType"
        DeleteMethod="Delete" InsertMethod="Insert" OldValuesParameterFormatString="original_{0}"
        OnInserting="odsProductOptionTypes_Inserting" OnSelecting="odsProductOptionTypes_Selecting"
        OnUpdating="odsProductOptionTypes_Updating" SelectMethod="List" TypeName="TanashCMS.Business.ProductOptionType"
        UpdateMethod="Update">
        <SelectParameters>
            <asp:ProfileParameter Name="WebsiteID" PropertyName="WebsiteID" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:GridView ID="gvOptionTypes" runat="server" AutoGenerateColumns="False" DataKeyNames="ID"
        DataSourceID="odsProductOptionTypes" OnRowUpdating="gvOptionTypes_RowUpdating"
        Width="50%">
        <Columns>
            <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
        </Columns>
    </asp:GridView>

</asp:Content>

